home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / Dialogs / AGSupprt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  3.0 KB  |  128 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        AGSupprt.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Owned by:    Yan Arrouye
  7.  
  8.     Copyright:    © 1995 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <5>     9/12/96    eeh        1386008: weak link against appleguidelib
  13.          <4>     9/11/96    eeh        1386008: AG fix for 68K
  14.          <3>     9/10/96    eeh        1386008: AppleGuide support (incomplete)
  15.          <2>      7/8/96    eeh        undo task 10008 (AppleGuide buttons)
  16.                  8/31/95    Yan        Moved to ShareWare
  17.  
  18.     To Do:
  19. */
  20.  
  21.  
  22. #ifndef _AGSUPPORT_
  23. #define _AGSUPPORT_
  24.  
  25. #include <Types.h>
  26.  
  27. #ifndef __DIALOGS__
  28. #include <Dialogs.h>
  29. #endif
  30.  
  31.  
  32.  
  33. #ifndef _DLGDEFS_
  34. #include "DdgDefs.h"
  35. #endif
  36.  
  37. enum
  38. {
  39.     kAppleGuidesList    = 'AGd#',    // List of the guides we want in the help menu
  40.     kAppleGuideInfo        = 'AGd?'    // Dialog specific help information
  41. };
  42.  
  43.  
  44.  
  45. #ifdef _APPLEGUIDE_READY_
  46.  
  47. //-------------------------------------------------------------------------
  48. //    IsAppleGuidePresent
  49. //    
  50. //    Returns true if AppleGuide is there.
  51. //-------------------------------------------------------------------------
  52.  
  53. Boolean IsAppleGuidePresent();
  54.  
  55.  
  56. //-------------------------------------------------------------------------
  57. //    IsAppleGuideInstalled
  58. //    
  59. //    Returns true if AppleGuide is present and a guide was installed.
  60. //-------------------------------------------------------------------------
  61.  
  62. // not used right now.
  63. //Boolean IsAppleGuideInstalled();
  64.  
  65.  
  66. //-------------------------------------------------------------------------
  67. //    InstallAppleGuide
  68. //    
  69. //    Installs the guide in the help menu and initialize the AppleGuide support.
  70. //    Call at init time
  71. //-------------------------------------------------------------------------
  72.  
  73. //void InstallAppleGuide();
  74.  
  75.  
  76.  
  77.  
  78. //-------------------------------------------------------------------------
  79. //    OpenAppleGuide
  80. //    
  81. //    Opens the database at the specified keyword
  82. //-------------------------------------------------------------------------
  83.  
  84. //Boolean OpenAppleGuide(StringPtr keyword = NULL);
  85. Boolean OpenAppleGuide( short sequenceID = 0 );
  86.  
  87.  
  88.  
  89. //-------------------------------------------------------------------------
  90. //    OpenAppleGuideMenuItem
  91. //    
  92. //    Opens the database at for the specified menu item
  93. //-------------------------------------------------------------------------
  94.  
  95. //Boolean OpenAppleGuideMenuItem(short item);
  96.  
  97.  
  98.  
  99. //-------------------------------------------------------------------------
  100. //    CloseAppleGuide
  101. //    
  102. //    Closes the database if it was opened and quits AppleGuide
  103. //-------------------------------------------------------------------------
  104.  
  105. void CloseAppleGuide();
  106.  
  107. //Eric's added these; comment later those that remain
  108. void InitAppleGuideSupport();
  109. void TakedownAppleGuideSupport();
  110. void DialogSetUpAppleGuide( DialogPtr dlg, short item );
  111. void DialogTakedownAppleGuide();
  112.  
  113. short ODGetIndShort( short resID, short index );
  114.  
  115. #else
  116. #define CloseAppleGuide()
  117. #define OpenAppleGuide()
  118.  
  119. #define InitAppleGuideSupport()
  120. #define TakedownAppleGuideSupport()
  121. #define DialogSetUpAppleGuide( dlg, item )
  122. #define DialogTakedownAppleGuide()
  123.  
  124. #endif /* _APPLEGUIDE_READY_ */
  125.  
  126.  
  127. #endif
  128.